<?php

function navbarselected($var, $value, $classname = '') {
	$html = '';
	if ($var == $value) {
		$html .= "ui-btn-active ui-state-persist ";
	}
	if (!empty($classname)) {
		$html .= $classname;
	}
	if (!empty($html)) {
		$html = 'class="'.trim($html).'"';
	}
	return $html;
}

?>